import React from 'react';

class PageTitle extends React.Component{
    constructor(props){
        super(props)
    }
    //组件将要加载
    componentWillMount(){
        document.title = this.props.title +' - ZYM REACT';
    }
    render(){
        return (
        <div className="row">
            <div className="col-md-12">
                <h1 className="page-header">{this.props.title}</h1>
                {this.props.children}
            </div>
        </div>
        )
    }
}

export default PageTitle;